import 'package:hrf_app/common/routers/index.dart';
import 'package:hrf_app/common/routers/observers.dart';
import 'package:hrf_app/pages/main_tab/main_menu_tab/index.dart';
import 'package:hrf_app/pages/main_tab/main_my_tab//index.dart';
import 'package:hrf_app/pages/main_tab/main_tab/binding.dart';
import 'package:hrf_app/pages/main_tab/main_tab/view.dart';
import 'package:hrf_app/pages/menu/bug_page_list/projectBugAddPage/view.dart';
import 'package:hrf_app/pages/menu/bug_page_list/projectBugDetailPage/view.dart';
import 'package:hrf_app/pages/menu/bug_page_list/projectBugPage/view.dart';
import 'package:hrf_app/pages/menu/material/materialAddPage/view.dart';
import 'package:hrf_app/pages/menu/material/materialDetailPage/view.dart';
import 'package:hrf_app/pages/menu/material/materialSearchListPage/view.dart';
import 'package:hrf_app/pages/menu/tool/image_water/imageWater/view.dart';
import 'package:hrf_app/pages/menu/lab/markdown/index.dart';
import 'package:hrf_app/pages/menu/project/notebook_preview/view.dart';
import 'package:hrf_app/pages/menu/project/project_detail/view.dart';
import 'package:hrf_app/pages/menu/project/project_list/view.dart';
import 'package:hrf_app/pages/menu/project/project_list/view.dart';
import 'package:hrf_app/pages/system/http_ip_set/view.dart';
import 'package:hrf_app/pages/system/login/view.dart';
import 'package:hrf_app/pages/system/splash/index.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../pages/menu/lab/bluetooth/view.dart';
import '../../pages/menu/tool/image_water/imageCompanyWater/view.dart';

class RoutePages {
  static final RouteObserver<Route> observer = RouteObservers();
  static List<String> history = [];

  // 列表
  static List<GetPage> list = [
    GetPage(
      name: RouteNames.systemSplash,
      page: () => const SplashPage(),
    ),
    GetPage(
      name: RouteNames.systemLogin,
      page: () => const LoginPage(),
    ),
    GetPage(
      name: RouteNames.systemHttpIpSet,
      page: () => const HttpIpSetPage(),
    ),
    GetPage(
      name: RouteNames.mainTab,
      page: () => const MainTabPage(),
      binding: MainBinding(),
    ),

    GetPage(
      name: RouteNames.mainMyTab,
      page: () => const MainMyTabPage(),
    ),
    GetPage(
      name: RouteNames.mainMenuTab,
      page: () => const MainMenuTabPage(),
    ),

    GetPage(
      name: RouteNames.projectBugPage,
      page: () => const ProjectBugPage(),
    ),
    GetPage(
      name: RouteNames.projectBugDetailPage,
      page: () => const ProjectBugDetailPage(),
    ),

    GetPage(
      name: RouteNames.projectBugAddPage,
      page: () => const ProjectBugAddPage(),
    ),

    GetPage(
      name: RouteNames.labMarkdown,
      page: () => const MarkdownPage(),
    ),
    GetPage(
      name: RouteNames.projectList,
      page: () => const ProjectListPage(),
    ),

    GetPage(
      name: RouteNames.projectDetail,
      page: () => const ProjectDetailPage(),
    ),

    GetPage(
      name: RouteNames.notebookPreview,
      page: () => const NotebookPreviewPage(),
    ),

    GetPage(
      name: RouteNames.labBluetooth,
      page: () => const BluetoothPage(),
    ),

    GetPage(
      name: RouteNames.imageWater,
      page: () => const ImageWaterPage(),
    ),

    GetPage(
      name: RouteNames.materialSearchListPage,
      page: () => const MaterialSearchPage(),
    ),

    GetPage(
      name: RouteNames.imageCompanyWater,
      page: () => const ImageCompanyWaterPage(),
    ),
    GetPage(
      name: RouteNames.materialAddPage,
      page: () => const MaterialAddPage(),
    ),

    GetPage(
      name: RouteNames.materialDetailPage,
      page: () => const MaterialDetailPage(),
    ),
  ];
}
